<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户</title>
    <style>
        div {
            width: 200px;
            border: black solid 1px;
        }
    </style>
</head>
<body>
<a th:href="@{/user}">查询所有用户信息</a><br>
<a th:href="@{/user/1}">查询id查询用户信息</a><br>
<div>
    <form th:action="@{/user}" method="post">
        用户名 <input type="text" name="username"><br>
        密码 <input type="password" name="password"><br>
        <input type="submit" value="添加"><br>
    </form>
</div>
<div>
    <form th:action="@{/user/1}" method="post">
        <input type="hidden" name="_method" value="put">
        用户名 <input type="text" name="username"><br>
        密码 <input type="password" name="password"><br>
        <input type="submit" value="修改"><br>
    </form>
</div>

</body>
</html>
